<?php 
    if(!empty($pay)){
        echo '
        <table id="movie-table" data-mode="reflow" class="ui-responsive">
        <thead>
    		<tr>
              <th data-priority="1">Date</th>
              <th data-priority="persist">Account</th>
              <th data-priority="2">Point</th>
              <th data-priority="3">Type</th>
              <th data-priority="3">Status</th>       
            </tr>
        </thead>
        <tbody>
        ';
       
        foreach($pay as $payout){
           echo '
           <tr>  
           <td>'.@date("d/m",$payout->created).'</td>         
           <td>'.$payout->accpay.'</td>
           <td>'.$payout->point.'</td>
           <td>'.$payout->method.'</td>';           
           echo $payout->checked==1?"<td>Completed</td>":"<td>Pending</td>";
           echo
           '</tr>';            
        }
        echo '
        </tbody>
    </table>
        
        ';
    }
    
?>

